package com.spring_Ioc.user;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.applet.AppletContext;

public class main_test {

    public static void main(String[] args) {

        ApplicationContext context=new  ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        User user= (User) context.getBean("user");
        User user1= (User) context.getBean("user");
        System.out.println(user1);
        System.out.println(user);
        user.add();
    }
}
